package com;

/**
 * 系统参数配置文件
 * @author Ayumi
 *
 */
public class Const {
	
	//数据库名
	//public static String JNDI = "java:comp/env/jdbc/sbk";	
	public static String JNDI = "jdbc/sbk";
	//本地项目路径（到项目名）
	public static String path = "E:/Work/ywpt";
	//项目发布路径（到项目名）
	//public static String server_path = "D:\\Workspaces\\MyEclipse 8.6\\.metadata\\.me_tcat\\webapps\\sbk";
	public static String server_path = "/wls/sbk";
		
	
	
	//项目发布名称
	public static String project = "sbk";
	
	//上传附件的类型配置--Action
	public static final String[] dataType ={"doc","xls","rar","pdf","docx","jpg","gif","png","jar","war","xlsx","JPG"};
	//上传附件的类型配置--JSP
	public static final String file_types ="*.doc;*.xls;*.rar;*.pdf;*.docx;*.jpg;*.gif;*.png;*.jar;*.war;*.xlsx";
	
	
	public static boolean checkUserQx(String qx,String qxid)
	{
		boolean flag=false;
		String act[]=qx.split(",");
		for(int i=0;i<act.length;i++)
		{
			if(qxid.equals(act[i]))
			{
				flag=true;break;
			}
		}
		return flag;
	}
	
	
}
